import api from "@/api/axiosApi"
import QueryString from "qs";

const reserve = {
	getReserveAll(url,params){//后台获取全部预定信息
		return api.get(url,params)
	},
	queryMyReserve(url,params){
		return api.get(url,params)//查询用户全部订单
	},
	deleteMyReserve(url,params){
		return api.del(url,params)
	},
	postRefund(url,parms){
		return api.post(url,parms)//退款
	},
	delReservat(url,parms){
		return api.del(url,parms)//退款
	},
	takeInReserva(url,parms){
		return api.post(url,parms)//接受预定
	},
	cancelReserva(url,parms){
		return api.post(url,parms)//取消预定
	},
	CloseTheDeal(url,parms){
		return api.post(url,parms)//预定订单完成交易
	},
	addEvaluate(url,parms){
		return api.post(url,parms)//用户新增评价
	},
	EditEvaluate(url,parms){
		return api.post(url,parms)//用户修改评价
	},
	getEvaluate(url,parms){
		return api.post(url,parms)//获取当前预定的评价
	}
}

export default reserve;